<template>
    <div>
        <h3>个人中心页面</h3>
        <!-- 声明式子路由 -->
        <!-- <nuxt-link to="/login">登录</nuxt-link> -->
        <!-- 约定式路由 -->
        <!-- <nuxt-link :to='{name:"reg",params:{a:"sjm",p:123},query:{"name": "sjm"}}'>注册</nuxt-link> -->
        <!-- nuxt展示区 -->
        <!-- <nuxt/> -->
    </div>    
</template>
<script>
export default {
    // 实现组件独享前置守卫
    middleware({store,route,redirect,params, query,req,res}){
        console.log('middleware 组件独享前置守卫')
        //redirect('/user/login')
    }
}
</script>